package com.onion.utils.utils;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

@Deprecated
public class ThreadHelper {

    private static Logger logger = LoggerFactory.getLogger(ThreadHelper.class);

    public static void sleep(long timeInMillSec, String name) {
        try {
            Thread.sleep(timeInMillSec);
        } catch (InterruptedException exp) {
            logger.error("线程[{}]睡眠出错:{}", name, exp.getMessage());
        }
    }

}